import 'package:flutter/material.dart';

///https://zhuanlan.zhihu.com/p/392550893?utm_id=0

abstract class BaseStatelessWidget extends StatelessWidget{

  const BaseStatelessWidget({ super.key });

  ///纯UI Widget
  @override
  Widget build(BuildContext context) {
    return onCreate(context);
  }

  ///创建视图时调用
  @protected
  Widget onCreate(BuildContext context);

}